home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 301-325 / disk_322 / gwin / examples / examples.doc < prev    next >
Text File  |  1992-05-06  |  5KB  |  132 lines

  1. The examples and a brief description of each are as follows: 
  2.  
  3.     clipdemo 
  4.  
  5.         Demonstrates setup of a GWIN clipping window within an Amiga 
  6.         window.  
  7.  
  8.  
  9.     colormap2
  10.  
  11.         Demonstrates changing the colormap.  Place cursor  inside  a
  12.         triangle,  depress left mouse button and move cursor around.
  13.         The points of the triangles correspond  to  Red,  Green  and
  14.         Blue.  Distance  from  the  center  determines how much Red,
  15.         Green or Blue.  
  16.  
  17.  
  18.     placeobject 
  19.  
  20.         Demonstrates moving  and  placing  a  rectangle  of  various
  21.         colors.  
  22.  
  23.  
  24.     rubberbandline 
  25.  
  26.         Demonstrates a  rubberband  line.  Simple demo intended only
  27.         to illustrate how a rubberband line is generated.    (Object
  28.         code was deleted to make this all fit on one disk.  You must 
  29.         recompile before running this program.) 
  30.  
  31.  
  32.     text 
  33.  
  34.         Demonstrates  use of font selection and various text display
  35.         options.  (Object code was deleted to make this all  fit  on
  36.         one disk.  You must recompile before running this program.) 
  37.  
  38.  
  39.     graph 
  40.  
  41.         Accepts  a  list of numbers either from the keyboard or from
  42.         standard input.    The  numbers  are   assumed   to   be   Y
  43.         coordinates.    Integer   X  coordinates  are  automatically
  44.         assigned.  A graph is drawn.  Menu options  allow  switching
  45.         between line graph and bar graph modes.  If you place a list 
  46.         of  numbers  in  a  file  (say file1) then issue the command
  47.         "graph <file1", the numbers will be graphed.  
  48.  
  49.  
  50.     request 
  51.  
  52.         Shows how to use a  requester  to  ask  the  user  a  yes/no
  53.         question.  
  54.  
  55.  
  56.     screentypes 
  57.  
  58.         Demonstrates all 10 types of screens supported by GWIN.  
  59.  
  60.  
  61.     three-d 
  62.  
  63.         Allows construction of three-dimensional figures.  You would 
  64.         need  red/blue  glasses  to see the three-dimensional effect
  65.         however.  (Object code was deleted to make this all  fit  on
  66.         one disk.  You must recompile before running this program.) 
  67.  
  68.  
  69.     menu 
  70.  
  71.         Demonstrates how to build and use menus in GWIN.  
  72.  
  73.  
  74.     rubberbandbox 
  75.  
  76.         Demonstrates building boxes using a rubberband box.  
  77.  
  78.  
  79.     spiceplot 
  80.  
  81.         For you Electrical Engineers who have access to some version 
  82.         of the "SPICE" program.  Spiceplot reads a SPICE output file 
  83.         from standard input, i.e., type: "spiceplot <spiceoutput" to 
  84.         see it  plot curves contained in the spiceoutput file.  Note
  85.         the format of the data in the spiceoutput file.    Spiceplot
  86.         is looking  for  the  lists  of node data.  Depress the left
  87.         mouse button and hold, drag, and release.  A rubberband  box
  88.         will  have appeared and the selected region will be expanded
  89.         to fill the screen.  Use the menu to restore the  curves  to
  90.         their original  scale.  As the cursor moves, the coordinates
  91.         are displayed.  
  92.  
  93.  
  94.     geomap 
  95.  
  96.         A geographic mapping system.  I'm only plotting  grid  lines
  97.         so don't  expect  to see a world map.  I used to have access
  98.         to the almost 6,000,000 latitude/longitude points  in  World
  99.         Data Bank II.   I do not have it at the moment.  If YOU have
  100.         it and could send it or portions of it to me I would GREATLY 
  101.         appreciate it.  Call me at home at  (602)  897-7425.  Geomap
  102.         asks  for  latitude  and  longitude coordinates of where you
  103.         wish the center of the map  to  be.    I  used  some  simple
  104.         coordinate transformations that allow a lot of power without 
  105.         a lot  of  work.    Note  that the cursor reads latitude and
  106.         longitude as it is moved.   Note  menu  options.    We  have
  107.         orthographic  and  Mercator  projections  available with the
  108.         transverse Mercator projection thrown in  for  free.    Note
  109.         that   the   cursor  also  provides  accurate  latitude  and
  110.         longitude data when a transverse projection is displayed.  
  111.  
  112.         The "ortho2" menu option simply draws the back side  of  the
  113.         globe in blue and the front side in red.  "Ortho" only draws 
  114.         the front side.  
  115.  
  116.  
  117.     speedy 
  118.  
  119.         Demonstrates how Amiga calls can be used within a screen and 
  120.         window  initiated  by  GWIN. GWIN saved all of the effort of
  121.         bringing up a special screen and window while allowing  full
  122.         use of  all standard Amiga graphics functions.  Speedy makes
  123.         use of direct Amiga graphics function calls to  provide  the
  124.         fastest possible  graphics  operations.  This means that for
  125.         special purposes, it is  possible  to  bypass  the  floating
  126.         point  world/screen  coordinate  transformations  that are a
  127.         part of normal GWIN operation.    The  function  uigrina  is
  128.         provided  to  allow  transformationless  return  of  x and y
  129.         cursor coordinates for greatest possible speed.  The slowest 
  130.         thing in "speedy" is perhaps the call to the  random  number
  131.         generator, "ran".  
  132.